package com.enation.app.javashop.goodsservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 商品服务
 *
 * @author kingapex
 * @version 1.0
 * @since 7.0.0
 * 2018/7/4
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.enation.app.javashop.core.client")
@ComponentScan("com.enation.app.javashop")
@MapperScan(basePackages = "com.enation.app.javashop.mapper")
@EnableScheduling
public class GoodsServiceApplication {
    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(GoodsServiceApplication.class, args);
    }

}
